import Ajv from 'ajv';
import type { ErrorObject } from 'ajv';

export class ValidationError extends Error {

  constructor(
    public readonly ajv: Ajv,
    public readonly errors: Partial<ErrorObject>[],
  ) {
    super('validation failed');
  }
}
